/*******************************************************************************
*  file    : qloggerfileappender.hpp
*  created : 01.05.2013
*  author  : 
*******************************************************************************/

#ifndef QLOGGERFILEAPPENDER_HPP
#define QLOGGERFILEAPPENDER_HPP

#include "qloggerconf.hpp"
#include "qloggerappender.hpp"
#include "qloggerevent.hpp"

class QLOGGER_DECL QLoggerFileAppender : public QLoggerAppender
{
    protected:
        QString _filename;
    public:
        void write (const QLoggerEvent &event);
        QLoggerFileAppender (int level, const QString &filename, const QString &format, const QString& time_format = "yyyy.MM.dd hh:mm:ss.zzz");
};

#endif // QLOGGERFILEAPPENDER_HPP
